package com.bg.sparkproject.pattern.adapter.interfaces;

import com.bg.sparkproject.pattern.adapter.Ps2;

/**
 * @Auther: zhengshunzhi
 * @Date: 2019/1/4 09:50
 * @Description: 接口适配器实现类
 */
public class AdapterImpl extends Adapter{

    @Override
    public void isPs2() {
       isUsb();
    }

    @Override
    public void isUsb() {
        System.out.println("这是usb接口");
    }

    public static void main(String[] args) {
        Ps2 p = new AdapterImpl();
        p.isPs2();
    }
}
